<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>留言 - 回眸</title>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>
        <div class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="../..">回眸</a>
                <!-- Expander button -->
                <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <!-- Expanded navigation -->
                <div id="navbar-collapse" class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li class="navitem">
                                <a href="../.." class="nav-link">首页</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">用户 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../../user/user/" class="dropdown-item">Main</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">回眸 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../" class="dropdown-item">首页</a>
</li>
                                    
<li>
    <a href="./" class="dropdown-item active">留言</a>
</li>
                                    
<li>
    <a href="../like/" class="dropdown-item">喜欢</a>
</li>
                                    
<li>
    <a href="../my/" class="dropdown-item">我的</a>
</li>
                                    
<li>
    <a href="../im/" class="dropdown-item">消息</a>
</li>
                                    
<li>
    <a href="../report/" class="dropdown-item">举报</a>
</li>
                                    
<li>
    <a href="../cover/" class="dropdown-item">封面</a>
</li>
                                    
<li>
    <a href="../group/" class="dropdown-item">群组</a>
</li>
                                    
<li>
    <a href="../boss/" class="dropdown-item">Boss</a>
</li>
                                    
<li>
    <a href="../store/" class="dropdown-item">小商店</a>
</li>
                                    
<li>
    <a href="../address/" class="dropdown-item">地址</a>
</li>
                                    
<li>
    <a href="../live/" class="dropdown-item">对讲</a>
</li>
                                    
<li>
    <a href="../video/" class="dropdown-item">白噪音</a>
</li>
                                    
<li>
    <a href="../talk/" class="dropdown-item">直播</a>
</li>
                                    
<li>
    <a href="../screen/" class="dropdown-item">共享屏幕</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav ml-auto">
                        <li class="nav-item">
                            <a href="#" class="nav-link" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li class="nav-item">
                                <a rel="prev" href="../" class="nav-link">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li class="nav-item">
                                <a rel="next" href="../like/" class="nav-link">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                    <div class="col-md-3"><div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
    <div class="navbar-header">
        <button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
            <span class="fa fa-angle-down"></span>
        </button>
    </div>

    
    <div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
        <ul class="nav flex-column">
            
            <li class="nav-item" data-level="1"><a href="#_1" class="nav-link">留言接口文档</a>
              <ul class="nav flex-column">
            <li class="nav-item" data-level="2"><a href="#_2" class="nav-link">修订记录</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_3" class="nav-link">背景</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_4" class="nav-link">产品说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_5" class="nav-link">关键流程说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_6" class="nav-link">接口说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
              </ul>
            </li>
        </ul>
    </div>
</div></div>
                    <div class="col-md-9" role="main">

<h1 id="_1">留言接口文档</h1>
<div class="toc">
<ul>
<li><a href="#_1">留言接口文档</a><ul>
<li><a href="#_2">修订记录</a></li>
<li><a href="#_3">背景</a></li>
<li><a href="#_4">产品说明</a></li>
<li><a href="#_5">关键流程说明</a></li>
<li><a href="#_6">接口说明</a><ul>
<li><a href="#10">1.0 发送留言</a><ul>
<li><a href="#_7">接口说明</a></li>
<li><a href="#_8">请求说明</a></li>
<li><a href="#_9">输入参数</a></li>
<li><a href="#_10">错误说明</a></li>
<li><a href="#_11">返回实例</a></li>
</ul>
</li>
<li><a href="#11">1.1 删除留言</a><ul>
<li><a href="#_12">接口说明</a></li>
<li><a href="#_13">请求说明</a></li>
<li><a href="#_14">输入参数</a></li>
<li><a href="#_15">错误说明</a></li>
<li><a href="#_16">返回实例</a></li>
</ul>
</li>
<li><a href="#12">1.2 评论</a><ul>
<li><a href="#_17">接口说明</a></li>
<li><a href="#_18">请求说明</a></li>
<li><a href="#_19">输入参数</a></li>
<li><a href="#_20">错误说明</a></li>
<li><a href="#_21">返回实例</a></li>
</ul>
</li>
<li><a href="#13">1.3 删除评论</a><ul>
<li><a href="#_22">接口说明</a></li>
<li><a href="#_23">请求说明</a></li>
<li><a href="#_24">输入参数</a></li>
<li><a href="#_25">错误说明</a></li>
<li><a href="#_26">返回实例</a></li>
</ul>
</li>
<li><a href="#13_1">1.3 详情</a><ul>
<li><a href="#_27">接口说明</a></li>
<li><a href="#_28">请求说明</a></li>
<li><a href="#_29">输入参数</a></li>
<li><a href="#_30">错误说明</a></li>
<li><a href="#_31">返回实例</a></li>
</ul>
</li>
<li><a href="#14">1.4 互动状态同步</a><ul>
<li><a href="#_32">接口说明</a></li>
<li><a href="#_33">请求说明</a></li>
<li><a href="#_34">输入参数</a></li>
<li><a href="#_35">错误说明</a></li>
<li><a href="#_36">返回实例</a></li>
</ul>
</li>
<li><a href="#15">1.5 点赞</a><ul>
<li><a href="#_37">接口说明</a></li>
<li><a href="#_38">请求说明</a></li>
<li><a href="#_39">输入参数</a></li>
<li><a href="#_40">错误说明</a></li>
<li><a href="#_41">返回实例</a></li>
</ul>
</li>
<li><a href="#16">1.6 置顶</a><ul>
<li><a href="#_42">接口说明</a></li>
<li><a href="#_43">请求说明</a></li>
<li><a href="#_44">输入参数</a></li>
<li><a href="#_45">错误说明</a></li>
<li><a href="#_46">返回实例</a></li>
</ul>
</li>
<li><a href="#17">1.7 取消置顶</a><ul>
<li><a href="#_47">接口说明</a></li>
<li><a href="#_48">请求说明</a></li>
<li><a href="#_49">输入参数</a></li>
<li><a href="#_50">错误说明</a></li>
<li><a href="#_51">返回实例</a></li>
</ul>
</li>
<li><a href="#18">1.8 分页获取留言数据</a><ul>
<li><a href="#_52">接口说明</a></li>
<li><a href="#_53">请求说明</a></li>
<li><a href="#_54">输入参数</a></li>
<li><a href="#_55">错误说明</a></li>
<li><a href="#_56">返回实例</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="_2">修订记录</h2>
<hr />
<table>
<thead>
<tr>
<th>日期</th>
<th>作者</th>
<th>修订类型</th>
<th>修订内容</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>2020年07月03日</td>
<td>冷立纲</td>
<td>A</td>
<td>新增设计方案</td>
<td>1.0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>【修订类型：A-新增  M-修改 D-删除】</p>
</blockquote>
<h2 id="_3">背景</h2>
<h2 id="_4">产品说明</h2>
<h2 id="_5">关键流程说明</h2>
<h2 id="_6">接口说明</h2>
<h4 id="10">1.0 发送留言</h4>
<h5 id="_7">接口说明</h5>
<p>添加留言信息</p>
<h5 id="_8">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/add</td>
</tr>
</tbody>
</table>
<h5 id="_9">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">longtitude</td>
<td align="center">是</td>
<td align="left">double</td>
<td align="left">经度</td>
<td align="left">最多小数点后6位</td>
</tr>
<tr>
<td align="left">latitude</td>
<td align="center">是</td>
<td align="left">double</td>
<td align="left">纬度</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">roomId</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">空间ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">note</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">最多70字</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">noteType</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">留言类型</td>
<td align="left">0 文本 1 图文  2 视频</td>
</tr>
<tr>
<td align="left">color</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">随机色值</td>
<td align="left">16进制 #fffff</td>
</tr>
<tr>
<td align="left">imageUrl</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">图片地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">videoUrl</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">视频地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">tags</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">tag 标签json数组</td>
<td align="left">参照tag参数说明</td>
</tr>
<tr>
<td align="left">multiRoom</td>
<td align="center">否</td>
<td align="left">boolean</td>
<td align="left">是否同步连锁空间</td>
<td align="left">默认值false</td>
</tr>
<tr>
<td align="left">noteSize</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">尺寸</td>
<td align="left">长*宽</td>
</tr>
<tr>
<td align="left">showScreen</td>
<td align="center">否</td>
<td align="left">boolean</td>
<td align="left">是否显示在主屏幕</td>
<td align="left">只有房主有权限 默认 false</td>
</tr>
<tr>
<td align="left"></td>
<td align="center"></td>
<td align="left"></td>
<td align="left"></td>
<td align="left"></td>
</tr>
</tbody>
</table>
<p><strong>tags 参数说明</strong></p>
<pre><code class="json">[{
    &quot;content&quot;: &quot;test&quot;, //标签内容
    &quot;color&quot;: &quot;default&quot;, //颜色
    &quot;fontSize&quot;: 12, // 字号
    &quot;rotateAngel&quot;: 0.0, //旋转角度
    &quot;top&quot;: &quot;50%&quot;, //距离图片上边百分比
    &quot;left&quot;: &quot;50%&quot; //距离图偏左侧百分比
}]
</code></pre>

<h5 id="_10">错误说明</h5>
<h5 id="_11">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;:5
    }
}

</code></pre>

<h4 id="11">1.1 删除留言</h4>
<h5 id="_12">接口说明</h5>
<p>添加留言信息</p>
<h5 id="_13">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/del</td>
</tr>
</tbody>
</table>
<h5 id="_14">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">消息ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_15">错误说明</h5>
<ol>
<li>没有操作权限</li>
</ol>
<h5 id="_16">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}

</code></pre>

<h4 id="12">1.2 评论</h4>
<h5 id="_17">接口说明</h5>
<p>为留言添加评论信息</p>
<h5 id="_18">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/comment</td>
</tr>
</tbody>
</table>
<h5 id="_19">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">comment</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">评论</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">noteId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">留言ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">pid</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">父节点ID</td>
<td align="left">点击回复的留言ID，如果没有写0</td>
</tr>
<tr>
<td align="left">tCommentId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">二级评论的顶级父评论ID</td>
<td align="left">如果没有写0</td>
</tr>
</tbody>
</table>
<h5 id="_20">错误说明</h5>
<ol>
<li>没有操作权限</li>
</ol>
<h5 id="_21">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;: 10 //评论ID
    }
}
</code></pre>

<h4 id="13">1.3 删除评论</h4>
<h5 id="_22">接口说明</h5>
<p>为留言添加评论信息</p>
<h5 id="_23">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/comment/del</td>
</tr>
</tbody>
</table>
<h5 id="_24">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">评论ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_25">错误说明</h5>
<h5 id="_26">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}
</code></pre>

<h4 id="13_1">1.3 详情</h4>
<h5 id="_27">接口说明</h5>
<p>为留言添加评论信息</p>
<h5 id="_28">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/detail</td>
</tr>
</tbody>
</table>
<h5 id="_29">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">noteId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">留言ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">commentId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">评论ID</td>
<td align="left">若回复某条评论则填写对应值，否则0</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">页码</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">单页条数</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_30">错误说明</h5>
<h5 id="_31">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

        {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;note&quot;: {
            &quot;avatar&quot;: &quot;/x/y/z&quot;,   //留言数据
            &quot;uid&quot;: 11443,
            &quot;id&quot;: 2,
            &quot;roomId&quot;: &quot;B0FFLIND01&quot;, //空间ID
            &quot;note&quot;: &quot;test&quot;,
            &quot;color&quot;: &quot;#fffff&quot;,  //颜色
            &quot;addTime&quot;: 1594198044901,
            &quot;commentsCount&quot;: 10
        },
        &quot;comments&quot;: {  //评论数据
            &quot;pageSize&quot;: 10,
            &quot;currentPage&quot;: 1,
            &quot;list&quot;: [
                {
                    &quot;id&quot;: 9,  //评论ID
                    &quot;noteId&quot;: 2,  //留言ID
                    &quot;uid&quot;: 11443, //用户ID
                    &quot;level&quot;: &quot;L2&quot;, //层级ID 直接回复留言的为L1，其他L2
                    &quot;pid&quot;: 7,  //父ID ，回复某条留言的时候取该留言ID
                    &quot;commentsCount&quot;: 0,  //回复数
                    &quot;comment&quot;: &quot;test&quot;, //回复
                    &quot;addTime&quot;: null, //添加时间
                    &quot;toUid&quot;: 11443, //回复人
                    &quot;avatar&quot;: &quot;/x/y/z&quot;, //头像
                    &quot;toAvatar&quot;: &quot;/x/y/z&quot;, //被回复头像
                    &quot;reply&quot;: true, //是否回复
                    &quot;tcommentId&quot;: 7 // 留言下L1 评论的ID，
                },
                {
                    &quot;id&quot;: 10,
                    &quot;noteId&quot;: 2,
                    &quot;uid&quot;: 11443,
                    &quot;level&quot;: &quot;L2&quot;,
                    &quot;pid&quot;: 8,
                    &quot;commentCount&quot;: null,
                    &quot;comment&quot;: &quot;test&quot;,
                    &quot;addTime&quot;: null,
                    &quot;toUid&quot;: 11443,
                    &quot;avatar&quot;: &quot;/x/y/z&quot;,
                    &quot;toAvatar&quot;: null,
                    &quot;reply&quot;: false,
                    &quot;tcommentId&quot;: 7
                }
            ],
            &quot;end&quot;: true,
            &quot;empty&quot;: false
        }
    }
}
    }
}
</code></pre>

<h4 id="14">1.4 互动状态同步</h4>
<h5 id="_32">接口说明</h5>
<p>拉取同步互动状态</p>
<h5 id="_33">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/remind/status</td>
</tr>
</tbody>
</table>
<h5 id="_34">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">commentIds</td>
<td align="center">是</td>
<td align="left">int[]</td>
<td align="left">评论ID</td>
<td align="left">评论ID数组</td>
</tr>
</tbody>
</table>
<h5 id="_35">错误说明</h5>
<h5 id="_36">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: [
        {
            &quot;commentId&quot;: 100, //评论ID
            &quot;commentDelete&quot;: false, //评论是否删除
            &quot;pcommentDelete&quot;: false, //父评论是否删除
            &quot;tcommentDelete&quot;: false, //顶级评论是否删除
            &quot;noteDelete&quot;: true, //是否删除
            &quot;remark&quot;: null, //备注名
            &quot;roomId&quot;: &quot;B0FFM6JAVG&quot;, //房间号
            &quot;roomName&quot;: null // 房间名
        }
    ]
}

</code></pre>

<h4 id="15">1.5 点赞</h4>
<h5 id="_37">接口说明</h5>
<p>拉取同步互动状态</p>
<h5 id="_38">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/thumb</td>
</tr>
</tbody>
</table>
<h5 id="_39">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">noteId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">留言ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">value</td>
<td align="center">是</td>
<td align="left">boolean</td>
<td align="left">点赞值</td>
<td align="left">true:点赞   false: 取消</td>
</tr>
</tbody>
</table>
<h5 id="_40">错误说明</h5>
<h5 id="_41">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;value&quot;: true  //当前值
    }
}
</code></pre>

<h4 id="16">1.6 置顶</h4>
<h5 id="_42">接口说明</h5>
<p>置顶</p>
<h5 id="_43">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/top</td>
</tr>
</tbody>
</table>
<h5 id="_44">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">留言ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_45">错误说明</h5>
<h5 id="_46">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}
</code></pre>

<h4 id="17">1.7 取消置顶</h4>
<h5 id="_47">接口说明</h5>
<p>置顶</p>
<h5 id="_48">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/untop</td>
</tr>
</tbody>
</table>
<h5 id="_49">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">留言ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_50">错误说明</h5>
<h5 id="_51">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}
</code></pre>

<h4 id="18">1.8 分页获取留言数据</h4>
<h5 id="_52">接口说明</h5>
<p>分页面拉取留言数据</p>
<h5 id="_53">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/note/list</td>
</tr>
</tbody>
</table>
<h5 id="_54">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">空间ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">uid</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">用户ID</td>
<td align="left">查看某个用户在该空间的留言</td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">单页条数</td>
<td align="left">默认10条</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">分页数</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_55">错误说明</h5>
<h5 id="_56">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 1,
        &quot;total&quot;: null,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
           {
                &quot;uid&quot;: 11454,
                &quot;name&quot;: &quot;用户xnEFY&quot;,
                &quot;avatar&quot;: &quot;FonAFb_WlcDtbQFinDuh3QaGrqd0.jpeg&quot;,
                &quot;certStatus&quot;: 1,
                &quot;level&quot;: 1,
                &quot;id&quot;: 183,
                &quot;roomId&quot;: &quot;B0FFK5WBZ0&quot;,
                &quot;note&quot;: &quot;23&quot;,
                &quot;color&quot;: &quot;DAB8F3&quot;,
                &quot;addTime&quot;: 1602324668400,
                &quot;commentsCount&quot;: 5,
                &quot;noteType&quot;: 0,
                &quot;imageUrl&quot;: null,
                &quot;tags&quot;: null,
                &quot;userRole&quot;: 0,
                &quot;auditStatus&quot;: 0,
                &quot;thumbCount&quot;: 0,
                &quot;thumbStatus&quot;: false,
                &quot;hint&quot;: false,
                &quot;topTime&quot;: null,
                &quot;times&quot;: 6,
                &quot;videoUrl&quot;: null,
                &quot;goodsIds&quot;: null,
                &quot;noteSize&quot;: null,
                &quot;showScreen&quot;: false,
                &quot;commentList&quot;: [ //留言数据
                    {
                        &quot;id&quot;: 233,
                        &quot;uid&quot;: 12399,
                        &quot;noteId&quot;: 183,
                        &quot;name&quot;: &quot;用户uCJsc&quot;,
                        &quot;commentsCount&quot;: 1,
                        &quot;delete&quot;: false,
                        &quot;comment&quot;: &quot;不&quot;
                    },
                    {
                        &quot;id&quot;: 190,
                        &quot;uid&quot;: 11454,
                        &quot;noteId&quot;: 183,
                        &quot;name&quot;: &quot;用户xnEFY&quot;,
                        &quot;commentsCount&quot;: 2,
                        &quot;delete&quot;: false,
                        &quot;comment&quot;: &quot;哈哈哈&quot;
                    }
                ],
                &quot;creator&quot;: false
            }
        ],
        &quot;end&quot;: false,
        &quot;empty&quot;: false,
        &quot;startIndex&quot;: 0,
        &quot;totalPage&quot;: null
    }
}
</code></pre></div>
            </div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="searchModalLabel">Search</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form>
                    <div class="form-group">
                        <input type="search" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
